package com.bird.multipleevent;

import org.springframework.context.ApplicationListener;

/**
 * @data 2023/4/8 11:13
 * @author: bird
 * @description:
 * 橙色事件监听器
 */
public class OrangeAccidentEventListener implements ApplicationListener<OrangeAccidentEvent> {
    @Override
    public void onApplicationEvent(OrangeAccidentEvent orangeAccidentEvent) {
        System.out.println("发生了橙色事故："+orangeAccidentEvent.getSource());
    }
}
